<?php

namespace addons\fankeditor\controller;

use think\addons\Controller;

class Index extends Controller
{

    public function index()
    {
        $this->error("当前插件暂无前台页面");
    }

    public function attachment()
    {
        $page = $this->request->param('page', 1);
        $marker = $this->request->param('marker', '');
        $fileType = $this->request->param('fileType', 'image');

        //data = ['height','filesize','oriURL','thumbURL','width']
        return json([
            'code' => '000',
            'count' => 0,
            'data' => [],
            'extra' => '',
            'page' => 0,
            'pagesize' => 15
        ]);
    }
}
